import { Component, OnInit } from '@angular/core';
import { _HttpClient } from '@delon/theme';

@Component({
  selector: 'app-great-layout-home',
  templateUrl: './home.component.html'
})
export class GreatLayoutHomeComponent implements OnInit {
  menuList = [
    {
      menuId: '0',
      text: '首页',
      routerLink: 'home',
      icon: 'icon-home'
    },
    {
      menuId: '1',
      text: '表单校验',
      icon: 'icon-form',
      children: [
        {
          menuId: '1-0',
          text: '小数校验',
          routerLink: '/form/decimal'
        },
        {
          menuId: '1-1',
          text: '整数校验',
          routerLink: '/form/integer'
        },
        {
          menuId: '1-1',
          text: '字符串校验',
          routerLink: '/form/byte-length'
        },
        {
          menuId: '1-1',
          text: '字符串校验2',
          routerLink: '/form/string'
        },
        {
          menuId: '1-1',
          text: '空格过滤',
          routerLink: '/form/trim'
        },
        {
          menuId: '1-1',
          text: '综合示例',
          routerLink: '/form/form'
        },
        {
          menuId: '1-1',
          text: '表单离开',
          routerLink: '/form/can-leave'
        }
      ]
    },
    {
      menuId: '2',
      text: '界面布局',
      icon: 'icon-layout',
      children: [
        {
          menuId: '2-0',
          text: '上下布局',
          routerLink: '/layout/header-main'
        },
        {
          menuId: '2-1',
          text: '上中下布局',
          routerLink: '/layout/left-right'
        },
        {
          menuId: '2-1',
          text: '左右布局',
          routerLink: '/layout/left-right'
        },
        {
          menuId: '2-1',
          text: '全屏布局',
          routerLink: '/layout/full-screen'
        }
      ]
    },
    {
      menuId: '3',
      text: '文件操作',
      icon: 'icon-form',
      children: [
        {
          menuId: '3-0',
          text: '读取文件生成md5',
          routerLink: '/file/md5'
        }
      ]
    },
    {
      menuId: '4',
      text: '表格操作',
      icon: 'icon-form',
      children: [
        {
          menuId: '4-0',
          text: '表格拖拽',
          routerLink: '/table/table'
        }
      ]
    }
  ];
  layoutConfig = {
    headerHeight: 60,
    footerHeight: 60,
    leftWidth: 260,
    heightOffset: 0
  };
  constructor(private http: _HttpClient) {}

  ngOnInit = (): void => {};
}
